private var urlReq:URLRequest;
import flash.external.ExternalInterface;

private function gotochangepassword():void
   {
   	 
	  ExternalInterface.call("function(){window.location.href=\'chgpwd.html'\;}");     
}
	
	
private function loginpage():void
{
	  if ("admin"==this.userId.text)
	  {
	  	ExternalInterface.call("function(){window.location.href=\'AdminPanel.html'\;}");
	  }else if ("dd"==this.userId.text)
	  {
	  	ExternalInterface.call("function(){window.location.href=\'DeveloperPanel.html'\;}");
	  }    
	  else if ("cc"==this.userId.text)
	  {
	  	ExternalInterface.call("function(){window.location.href=\'CustomerPanel.html'\;}");
	  }
}	   